package com.wangyi.im.request;

import com.alibaba.fastjson.JSONArray;

public class IMEventSubscribeGetRequest {

    private String accid;

    private Integer eventType;

    private JSONArray publisherAccids;


    private IMEventSubscribeGetRequest(String accid, Integer eventType, JSONArray publisherAccids){
        this.accid = accid;
        this.eventType =eventType;
        this.publisherAccids = publisherAccids;
    }

    public static class Builder{

        private String accid;

        private Integer eventType;

        private JSONArray publisherAccids;


        public IMEventSubscribeGetRequest build(){
            return new IMEventSubscribeGetRequest(accid, eventType, publisherAccids);
        }

        public Builder setAccid(String accid) {
            this.accid = accid;
            return this;
        }

        public Builder setEventType(Integer eventType) {
            this.eventType = eventType;
            return this;
        }

        public Builder setPublisherAccids(JSONArray publisherAccids) {
            this.publisherAccids = publisherAccids;
            return this;
        }
    }
}
